<template>
  <thead>
    <tr class="tr">
      <th>
        <input type="checkbox" v-model="checkedArr.length" @click="selectAllClick(head.data)" />
      </th>
      <template v-if="to=='aliyun_ecs'">
        <th>实例名称</th>
        <th>实例状态</th>
        <th>实例规格</th>
        <th>浙政钉部门</th>
        <th>云项目</th>
        <th>申请人</th>
        <th>IP</th>
        <th>弹性公网</th>
        <th>所属VPCID</th>
        <th>所属安全组ID</th>
        <th>操作系统</th>
        <th>创建时间</th>
        <th>是否只读实例</th>
        <th>操作</th>
      </template>
      <template v-if="to=='aliyun_rds'">
        <th class="c1">实例名称|ID</th>
        <th>申请人|ID</th>
        <th>项目|ID</th>
        <th>实例状态</th>
        <th>实例规格</th>
        <th>访问地址</th>
        <th>数据库类型|版本</th>
        <th>存储容量</th>
        <th>创建时间</th>
        <!-- <th>操作</th> -->
      </template>
      <template v-if="to=='aliyun_oss'">
        <th class="c1">名称</th>
        <th>组织|ID</th>
        <th>申请人|ID</th>
        <th>存储类型</th>
        <th>存储容量</th>
        <th>描述</th>
        <th>创建时间</th>
        <!-- <th>操作</th> -->
      </template>
      <template v-if="to=='aliyun_slb'">
        <th class="c1">名称</th>
        <th>组织|ID</th>
        <th>申请人|ID</th>
        <th>实例状态</th>
        <th>服务地址</th>
        <th>网络类型</th>
        <th>VPC ID</th>
        <th>创建时间</th>
        <!-- <th>操作</th> -->
      </template>
      <template v-if="to==='aliyun_redis'">
        <th class="c1">实例|ID</th>
        <th>规格</th>
        <th>组织|ID</th>

        <th>架构类型</th>
        <th>带宽</th>
        <th>容量</th>
        <th>状态</th>
        <th>连接数限制</th>
        <th>创建时间</th>
      </template>
    </tr>
  </thead>
</template>

<script>
export default {
  props: ["to", "checkedArr", "head", "selectAll"],
  methods: {
    selectAllClick(item) {
      this.selectAll(item);
    }
  },
  mounted() {}
};
</script>

<style>
</style>